const express = require('express')
const app = express()

const router=require('./router.js')
app.use(router)

/* app.get('/user',(req,res)=>{
	res.send({name:'zs',age:20, gender:'男'})
})

app.post('/user',(req,res)=>{
	res.send('请求成功')
})

app.get('/user/:id',(req,res)=>{
	res.send(req.params)
}) */

app.listen(80,()=>{
	console.log('server running on 80 port...')
})